
#import "TUIInputMoreCellData.h"
#import "TUIDefine.h"
#import "TUIThemeManager.h"

static TUIInputMoreCellData *TUI_Photo_MoreCell;
static TUIInputMoreCellData *TUI_Picture_MoreCell;
static TUIInputMoreCellData *TUI_Video_MoreCell;
static TUIInputMoreCellData *TUI_File_MoreCell;
static TUIInputMoreCellData *TUI_VideoCall_MoreCell;
static TUIInputMoreCellData *TUI_AudioCall_MoreCell;
//APP自定义用
static TUIInputMoreCellData *TUI_ChronicDisease_MoreCell;
static TUIInputMoreCellData *TUI_RecommendDoctor_MoreCell;
static TUIInputMoreCellData *TUI_SendEvaluation_MoreCell;
static TUIInputMoreCellData *TUI_HuaYiTongConsult_MoreCell;
static TUIInputMoreCellData *TUI_VisitAppointment_MoreCell;


@implementation TUIInputMoreCellData

+ (void)initialize{
    [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(onChangeLanguage) name:TUIChangeLanguageNotification object:nil];
    [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(onChangeTheme) name:TUIDidApplyingThemeChangedNotfication object:nil];
}

+ (void)onChangeLanguage{
    [self resetAllCelData];
}

+ (void)onChangeTheme{
    [self resetAllCelData];
}

+ (TUIInputMoreCellData *)pictureData{
    if (!TUI_Picture_MoreCell) {
        TUI_Picture_MoreCell = [[TUIInputMoreCellData alloc] init];
        TUI_Picture_MoreCell.title = TUIKitLocalizableString(TUIKitMoreCamera);
        TUI_Picture_MoreCell.image = TUIChatBundleThemeImage(@"chat_more_camera_img", @"chat_more_camera_img");
        TUI_Picture_MoreCell.key = @"TUI_Picture_MoreCell";
    }
    return TUI_Picture_MoreCell;
}

+ (void)setPictureData:(TUIInputMoreCellData *)cameraData{
    TUI_Picture_MoreCell = cameraData;
}

+ (TUIInputMoreCellData *)photoData{
    if (!TUI_Photo_MoreCell) {
        TUI_Photo_MoreCell = [[TUIInputMoreCellData alloc] init];
        TUI_Photo_MoreCell.title = TUIKitLocalizableString(TUIKitMorePhoto);
        TUI_Photo_MoreCell.image = TUIChatBundleThemeImage(@"chat_more_picture_img", @"chat_more_picture_img");
        TUI_Photo_MoreCell.key = @"TUI_Photo_MoreCell";
    }
    return TUI_Photo_MoreCell;
}

+ (void)setPhotoData:(TUIInputMoreCellData *)pictureData{
    TUI_Photo_MoreCell = pictureData;
}

+ (TUIInputMoreCellData *)videoData{
    if (!TUI_Video_MoreCell) {
        TUI_Video_MoreCell = [[TUIInputMoreCellData alloc] init];
        TUI_Video_MoreCell.title = TUIKitLocalizableString(TUIKitMoreVideo);
        TUI_Video_MoreCell.image = TUIChatBundleThemeImage(@"chat_more_video_img", @"chat_more_video_img");
        TUI_Video_MoreCell.key = @"TUI_Video_MoreCell";
    }
    return TUI_Video_MoreCell;
}

+ (void)setVideoData:(TUIInputMoreCellData *)videoData{
    TUI_Video_MoreCell = videoData;
}

+ (TUIInputMoreCellData *)fileData{
    if (!TUI_File_MoreCell) {
        TUI_File_MoreCell = [[TUIInputMoreCellData alloc] init];
        TUI_File_MoreCell.title = TUIKitLocalizableString(TUIKitMoreFile);
        TUI_File_MoreCell.image = TUIChatBundleThemeImage(@"chat_more_file_img", @"chat_more_file_img");
        TUI_File_MoreCell.key = @"TUI_File_MoreCell";
    }
    return TUI_File_MoreCell;
}

+ (void)setFileData:(TUIInputMoreCellData *)fileData{
    TUI_File_MoreCell = fileData;
}

+ (TUIInputMoreCellData *)chronicDisease{
    if (!TUI_ChronicDisease_MoreCell) {
        TUI_ChronicDisease_MoreCell = [[TUIInputMoreCellData alloc] init];
        TUI_ChronicDisease_MoreCell.title = @"慢病服务";
        TUI_ChronicDisease_MoreCell.image = TUIChatBundleThemeImage(@"chat_more_chronicDisease_img", @"chat_more_chronicDisease_img");
        TUI_ChronicDisease_MoreCell.key = @"TUI_ChronicDisease_MoreCell";
    }
    return TUI_ChronicDisease_MoreCell;
}

+ (void)setChronicDisease:(TUIInputMoreCellData *)chronicDisease{
    TUI_ChronicDisease_MoreCell = chronicDisease;
}

+ (TUIInputMoreCellData *)recommendDoctor{
    if (!TUI_RecommendDoctor_MoreCell) {
        TUI_RecommendDoctor_MoreCell = [[TUIInputMoreCellData alloc] init];
        TUI_RecommendDoctor_MoreCell.title = @"推荐医生";
        TUI_RecommendDoctor_MoreCell.image = TUIChatBundleThemeImage(@"chat_more_recommendDoctor_img", @"chat_more_recommendDoctor_img");
        TUI_RecommendDoctor_MoreCell.key = @"TUI_RecommendDoctor_MoreCell";
    }
    return TUI_RecommendDoctor_MoreCell;
}

+ (void)setRecommendDoctor:(TUIInputMoreCellData *)recommendDoctor{
    TUI_RecommendDoctor_MoreCell = recommendDoctor;
}

+ (TUIInputMoreCellData *)sendEvaluation{
    if (!TUI_SendEvaluation_MoreCell) {
        TUI_SendEvaluation_MoreCell = [[TUIInputMoreCellData alloc] init];
        TUI_SendEvaluation_MoreCell.title = @"发送评估";
        TUI_SendEvaluation_MoreCell.image = TUIChatBundleThemeImage(@"chat_more_sendEvaluation_img", @"chat_more_sendEvaluation_img");
        TUI_SendEvaluation_MoreCell.key = @"TUI_SendEvaluation_MoreCell";
    }
    return TUI_SendEvaluation_MoreCell;
}

+ (void)setSendEvaluation:(TUIInputMoreCellData *)sendEvaluation{
    TUI_SendEvaluation_MoreCell = sendEvaluation;
}

+ (TUIInputMoreCellData *)huaYiTongConsult{
    if (!TUI_HuaYiTongConsult_MoreCell) {
        TUI_HuaYiTongConsult_MoreCell = [[TUIInputMoreCellData alloc] init];
        TUI_HuaYiTongConsult_MoreCell.title = @"华医通咨询";
        TUI_HuaYiTongConsult_MoreCell.image = TUIChatBundleThemeImage(@"chat_more_huaYiTongConsult_img", @"chat_more_huaYiTongConsult_img");
        TUI_HuaYiTongConsult_MoreCell.key = @"TUI_HuaYiTongConsult_MoreCell";
    }
    return TUI_HuaYiTongConsult_MoreCell;
}

+ (void)setHuaYiTongConsult:(TUIInputMoreCellData *)huaYiTongConsult{
    TUI_HuaYiTongConsult_MoreCell = huaYiTongConsult;
}

+ (TUIInputMoreCellData *)visitAppointment{
    if (!TUI_VisitAppointment_MoreCell) {
        TUI_VisitAppointment_MoreCell = [[TUIInputMoreCellData alloc] init];
        TUI_VisitAppointment_MoreCell.title = @"复诊预约";
        TUI_VisitAppointment_MoreCell.image = TUIChatBundleThemeImage(@"chat_more_visitAppointment_img", @"chat_more_visitAppointment_img");
        TUI_VisitAppointment_MoreCell.key = @"TUI_VisitAppointment_MoreCell";
    }
    return TUI_VisitAppointment_MoreCell;
}



+ (void)setVisitAppointment:(TUIInputMoreCellData *)visitAppointment{
    TUI_VisitAppointment_MoreCell = visitAppointment;
}

+ (void)resetAllCelData{
    TUI_Photo_MoreCell = nil;
    TUI_Picture_MoreCell = nil;
    TUI_Video_MoreCell = nil;
    TUI_File_MoreCell = nil;
    TUI_VideoCall_MoreCell = nil;
    TUI_AudioCall_MoreCell = nil;
    TUI_ChronicDisease_MoreCell = nil;
    TUI_RecommendDoctor_MoreCell = nil;
    TUI_SendEvaluation_MoreCell = nil;
    TUI_HuaYiTongConsult_MoreCell = nil;
    TUI_VisitAppointment_MoreCell = nil;
}

@end
